package com.ruoyi.lowcode.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 路由管理对象 api_mapping
 * 
 * @author ruoyi
 * @date 2023-07-03
 */
public class ApiMapping extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 对外接口名称 */
    @Excel(name = "对外接口名称")
    private String gatewayApiName;

    /** 对内的接口URL */
    @Excel(name = "对内的接口URL")
    private String insideApiUrl;

    /** api状态 1 可用 0 不可用 */
    @Excel(name = "api状态 1 可用 0 不可用")
    private Integer state;

    /** 接口描述 */
    @Excel(name = "接口描述")
    private String description;

    /** 微服务ID */
    @Excel(name = "微服务ID")
    private String serviceId;

    /** 幂等性 */
    @Excel(name = "幂等性")
    private String idempotents;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private String needfee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGatewayApiName(String gatewayApiName) 
    {
        this.gatewayApiName = gatewayApiName;
    }

    public String getGatewayApiName() 
    {
        return gatewayApiName;
    }
    public void setInsideApiUrl(String insideApiUrl) 
    {
        this.insideApiUrl = insideApiUrl;
    }

    public String getInsideApiUrl() 
    {
        return insideApiUrl;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setServiceId(String serviceId) 
    {
        this.serviceId = serviceId;
    }

    public String getServiceId() 
    {
        return serviceId;
    }
    public void setIdempotents(String idempotents) 
    {
        this.idempotents = idempotents;
    }

    public String getIdempotents() 
    {
        return idempotents;
    }
    public void setNeedfee(String needfee) 
    {
        this.needfee = needfee;
    }

    public String getNeedfee() 
    {
        return needfee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gatewayApiName", getGatewayApiName())
            .append("insideApiUrl", getInsideApiUrl())
            .append("state", getState())
            .append("description", getDescription())
            .append("serviceId", getServiceId())
            .append("idempotents", getIdempotents())
            .append("needfee", getNeedfee())
            .toString();
    }
}
